package com.tengju.bff.interfaces.covercharge.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.tengju.bff.interfaces.covercharge.entity.po.ServiceSelfCertification;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 自认证企业或个体工商户表 Mapper 接口
 * </p>
 *
 * @author zhaoyi
 * @since 2020-02-26
 */
@Component
public interface ServiceSelfCertificationMapper extends BaseMapper<ServiceSelfCertification> {

    /**
     * 根据平台编号和经销商id获取认证企业信息
     * @param paltformCode
     * @param idCode
     * @return
     */
    ServiceSelfCertification  queryNotStopedByPlatformCodeAndIdCode(
            @Param("paltformCode") String paltformCode,
            @Param("idCode") Integer idCode
    );

    /**
     * 根据搜索信息查找企业认证
     * @param idCode
     * @param idCodes
     * @param platformCode
     * @param type
     * @param status
     * @param companyName
     * @param companyNo
     * @return
     */
    ServiceSelfCertification  queryBySearch(
            @Param("platformCode") String platformCode,
            @Param("idCode") Integer idCode,
            @Param("idCodes") Integer idCodes,
            @Param("type") Integer type,
            @Param("status") String status,
            @Param("companyName") String companyName,
            @Param("companyNo") String companyNo
    );
}
